//import 'dart:io';

import 'dart:io';

import 'package:flutter/material.dart';
import 'package:flutter_bmfmap/BaiduMap/map/bmf_map_view.dart';
import 'package:flutter_bmfmap/BaiduMap/models/bmf_map_options.dart';

class MapScreen extends StatefulWidget {
  MapScreen({Key key}) : super(key: key);

  @override
  _MapScreenState createState() => _MapScreenState();
}

class _MapScreenState extends State<MapScreen> {
  @override
  Widget build(BuildContext context) {
    return Container(
      height: double.infinity,
      width: double.infinity,
      child: BMFMapWidget(
        onBMFMapCreated: (controller) {
          //onBMFMapCreated(controller);
        },
        mapOptions: BMFMapOptions(
          // mapType: ,
          baiduHeatMapEnabled: true,
          trafficEnabled: true,
          zoomLevel: 12,
          //mapPadding: BMFEdgeInsets(left: 30, top: 0, right: 30, bottom: 0),
        ),
      ),
    );
  }
}

//BMFMapOptions mapOptions = BMFMapOptions();
//   center: BMFCoordinate(39.917215, 116.380341),
//   zoomLevel: 12,
//   mapPadding: BMFEdgeInsets(left: 30, top: 0, right: 30, bottom: 0),
// );
